<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                template="#{theme.template}">

<ui:define name="left">
	<rich:simpleTogglePanel switchType="client">
		<f:facet name="header">Mis subastas</f:facet>
		<span style="float:right">
			<s:link view="/rss/my-last-auctions.xhtml" propagation="none" target="_blank">
				<img src="img/rss_icon.jpg" />
			</s:link>
		</span>
		<div>
			<ui:repeat value="#{userq.currentUser.account.auctions}" var="auction">
				#{auction.item.title} - #{auction.highBid}<br />
			</ui:repeat>
		</div>
	</rich:simpleTogglePanel>
	
	<rich:simpleTogglePanel switchType="client">
		<f:facet name="header">Mis pujas</f:facet>
		<span style="float:right">
			<s:link view="/rss/my-last-auctions.xhtml" propagation="none" target="_blank">
				<img src="img/rss_icon.jpg" />
			</s:link>
		</span>
		<div>
			<ui:repeat value="#{userq.currentUser.account.bids}" var="bid">
				#{bid.auction.item.title} - #{bid.amount} - #{bid.date}<br />
			</ui:repeat>
		</div>
	</rich:simpleTogglePanel>
</ui:define>

<ui:define name="body">

</ui:define>

</ui:composition>
